package com.yulang.product_server.controller;

import com.yulang.base.BaseResult;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

@RestController
@RequestMapping("/product")
public class ProductController {

    @PreAuthorize("hasAuthority('sys:manage')")
    @RequestMapping("/list")
    public BaseResult list(){
        List list = Arrays.asList("99","00");
        return BaseResult.ok(list);
    }

}
